package com.sunyard.dal.mapper;

import com.sunyard.dal.entity.PreQrcode;
import com.sunyard.dal.entity.PreQrcodeExample;
import com.sunyard.dal.entity.PubConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PubConfigMapper {
    int deleteByPrimaryKey(String confKey);

    int insert(PubConfig record);

    int insertSelective(PubConfig record);

    PubConfig selectByPrimaryKey(String confKey);

    List<PubConfig> selectListByPrimaryKey(String confKey);

    int updateByPrimaryKeySelective(PubConfig record);

    int updateByPrimaryKey(PubConfig record);

    /**
     * 获取机器码 tbl_machine_sn
     *
     * @param machineIpPort 服务IP+端口
     * @return 机器码 machineSn
     */
    String selectMachineSn(@Param("machineIpPort") String machineIpPort);

    /**
     * 插入机器码
     *
     * @param machineIpPort 服务IP+端口
     */
    void insertMachineSn(@Param("machineIpPort") String machineIpPort);
}